Skip to content

Conversation

@JonasVautherin
Copy link
Collaborator

@JonasVautherin JonasVautherin commented Jul 10, 2025

  • Move to Gradle Kotlin DSL
  • Use jreleaser, following deprecation of the OSSRH system for Maven Central
  • Enable SNAPSHOTs.

I published 3.6.0-SNAPSHOT for both sdk and mavsdk-server, would be nice if somebody could try:

From the sonatype documentation

Configure your build.gradle file with the following:

repositories {
  maven {
    name = 'Central Portal Snapshots'
    url = 'https://central.sonatype.com/repository/maven-snapshots/'

    // Only search this repository for the specific dependency
    content {
      includeModule("<the snapshot's groupId>", "<the snapshot's artifactId>")
    }
  }
  mavenCentral()
}

@JonasVautherin
Copy link
Collaborator Author

JonasVautherin commented Jul 10, 2025

@AlexShafir: I see that you build MAVSDK-Java from source. Would you be willing to try a clean build from this branch? Just to make sure I didn't break anything 🙈.

@matthieu-db, @rayw-dronesense, @josephm28, @KKJava1, @Ba0Nguyen: Would you be willing to try running the snapshot? Using the documentation above (you need to add the "maven-snapshots" repository) and pulling version 3.6.0-SNAPSHOT of mavsdk and mavsdk-server, and checking that they run normally?

This will allow us to make more frequent releases, and to leverage the SNAPSHOTs to help people test changes without having to build from source (we can let the CI do it and publish a snapshot instead 😎).

Thanks!

@matthieu-db
Copy link
Contributor

matthieu-db commented Jul 10, 2025

So, I had to do the following in my build.gradle.kts:

        maven {
            name = "Central Portal Snapshots"
            url = uri("https://central.sonatype.com/repository/maven-snapshots/")

            // Only search this repository for the specific dependency
            content {
                includeModule("io.mavsdk", "mavsdk")
                includeModule("io.mavsdk", "mavsdk-server")
            }
        }

In my app build.gradle.kts I changed the version to 3.6.0-SNAPSHOT

It seems to work fine.
logs has this:

MAVSDK version: v3.6.0

and then the usual messages when I connect it to the drone.

From my side: double thumbs up for this initiative, I'm sure it will be a great change :)

@AlexShafir
Copy link

It worked for me too: MAVSDK version: v3.6.0

@JonasVautherin
Copy link
Collaborator Author

Amazing, thank you for testing! 🙏

@JonasVautherin JonasVautherin merged commit bb21f06 into main Jul 10, 2025
@JonasVautherin JonasVautherin deleted the update-build-gradle branch July 10, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants